﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@page
	import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="com.bringway.global.domain.SysUserDetails"%>
<%
	SysUserDetails sysUserDetails = (SysUserDetails) SecurityContextHolder.getContext().getAuthentication()
			.getPrincipal();
	String gyh = "";
	if (null != sysUserDetails) {
		gyh = sysUserDetails.getGyh();
	}
%>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<title>红点e贷服务管理系统</title>
<jsp:include page="../../../global/assets_common.jsp" />
<style type="text/css">
.input-group .form-control{
	z-index:0;
}
body{
	font-size: 10px;
}
.ui-widget-header{
	border: none;
}
</style>
	</head>
	<body>
		<div id="toolbar" class="ui-widget-header ui-corner-all">
		<button id="btu_search">搜索</button>
		<button id="btu_add">授权app用户</button>
		<button id="btu_insert">新增用户</button>
		<button id="btu_delete">删除用户</button>
		<button id="btu_update">修改用户</button>
		<button id="btu_reset">重置密码</button>
	</div>
	<div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>
		<!--提示框 开始-->
		<div id="dialog_alert" title="提示" class="row ui-helper-hidden"></div>
		<!--提示框结束-->
		<!--搜索模态框 开始-->
	<div id="dialog_search" title="查询搜索" class="row ui-helper-hidden">
		<form class="form">
			<div class="form-group">
				<label for="s_yhm" class="control-label col-sm-2">员工号:</label>
				<div class="col-sm-4">
					<input type="text" id="s_yhm" name="GYH" class="form-control"/>
				</div>
			</div>
			<div class="form-group">
				<label for="s_name" class="control-label col-sm-2">姓名:</label>
				<div class="col-sm-4">
					<input type="text" id="s_name" name="XM" class="form-control" />
				</div>
			</div>
			<div class="form-group">
				<label for="s_gwmc" class="control-label col-sm-2">岗位名称:</label>
				<div class="col-sm-4">
					<input type="text" id="s_gwmc" name="GWMC" class="form-control" />
				</div>
			</div>
		</form>
	</div>
	<!--搜索模态框 结束-->
	<!--新增用户-->
	<div id="dialog_insert" title="新增用户" class="row ui-helper-hidden">
		<form class="form"  id="form_insert">
		 
			<div class="form-group">
				<label for="i_ygh" class="control-label col-sm-2">员工号:</label>
				<div class="col-sm-4">
					<input type="text" id="i_ygh" name="GYH" class="form-control"
						readonly="readonly"  value="<%=gyh%>" />
				</div>
			</div>
			 <div class="form-group">
				<label for="i_mm" class="control-label col-sm-2">密码:</label>
				<div class="col-sm-4">
					<input type="text" id="i_mm" name="USER_PASSWORD" class="form-control"
						 />
				</div>
			</div>  
			<div class="form-group">
				<label for="i_xm" class="control-label col-sm-2">姓名:</label>
				<div class="col-sm-4">
					<input type="text" id="i_xm" name="XM" class="form-control"/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_gwmc" class="control-label col-sm-2">岗位名称:</label>
				<div class="col-sm-4">
					<input type="text" id="i_gwmc" name="GWMC" class="form-control"/>
				</div>
			</div>
			<div class="form-group">
				<label for="i_js" class="control-label col-sm-2">角色:</label>
				<div class="col-sm-4">
					<input type="text" id="i_js" name="ROLEID" class="form-control"/>
				</div>
			</div>
		</form>
	</div>
	<!--授权-->
	
	
	
	
	<!--修改模态框 开始-->
	<div id="dialog_update" title="修改用户" class="row ui-helper-hidden">
		<form class="form" id="form_update">
			<div class="form-group">
				<label for="u_xm" class="control-label col-sm-2">姓名:</label>
				<div class="col-sm-4">
					<input type="text" id="u_xm" name="xm" class="form-control"
					/>
				</div>
			</div>
			<div class="form-group">
				<label for="u_gwmc" class="control-label col-sm-2">岗位名称:</label>
				<div class="col-sm-4">
					<input type="text" id="u_gwmc" name="gwmc" class="form-control"
						/>
				</div>
			</div>
			<div class="form-group">
				<label for="u_js" class="control-label col-sm-2">角色:</label>
				<div class="col-sm-4">
					<select  id="u_js" name="role" class="form-control" >
					<option value=''>分公司财务</option>
					<option value=''>总经理</option>
					<option value=''>OA业务员</option>
					<option value=''>总部发标</option>
					<option value=''>其它项</option>
					<option value=''>测试</option>
					<option value=''>管理员</option>
					<option value=''>人事</option>
					<option value=''>客服</option>
					<option value=''>硬件网络工程师</option>
					<option value=''>发标审核员</option>
					<option value=''>发标申请员</option>
					<option value=''>总部财务(回款审核)</option>
					</select>
				</div>
			</div>
			<input type="hidden" id="u_id" name="id">
		</form>
	</div>
	<!--修改模态框 结束-->
	
	

	<!--APP授权 开始-->
	<div id="dialog_add" title="APP授权" class="row ui-helper-hidden">
		<form class="form" id="form_add">
			<div class="form-group">
				<label for="a_ygh" class="control-label col-sm-2">员工号:</label>
				<div class="col-sm-4">
					<input type="text" id="a_ygh" name="yhm" class="form-control"
						readonly="readonly"  />
				</div>
			</div>
			<div class="form-group">
				<label for="a_xm" class="control-label col-sm-2">姓名:</label>
				<div class="col-sm-4">
					<input type="text" id="a_xm" name="xm" class="form-control"/>
				</div>
			</div>
			<div class="form-group">
				<label for="a_gwmc" class="control-label col-sm-2">岗位名称:</label>
				<div class="col-sm-4">
					<input type="text" id="a_gwmc" name="gwmc" class="form-control"/>
				</div>
			</div>
			<div class="form-group">
				<label for="a_js" class="control-label col-sm-2">角色:</label>
				<div class="col-sm-4">
					<input type="text" id="a_js" name="role" class="form-control"/>
				</div>
			</div>
		</form>
	</div>
	<!--APP授权 结束-->
	

</body>
<script src="${basePath}/global/js/assets/user.js"></script>
</html>